'use strict';

module.exports = app => {
    const { STRING, INTEGER } = app.Sequelize;

    const Project = app.model.define('project', {
        id: { type: STRING, primaryKey: true, autoIncrement: true },
        project_name: STRING(255),
        user_id: INTEGER
    }, {
        freezeTableName: true, // Model 对应的表名将与model名相同
        timestamps: false,
    });

    return Project;
};




